##########################################
## Copyright 2012-2013 Ceruti Francesco & contributors
##
## This file is part of LiSP (Linux Show Player).
##########################################


class Plugin:

    PLUGIN_NAME = 'NoName'  # Plugin name

    def __init__(self, main):
        pass

    def reload(self):
        '''When a program is loaded this method is called'''

    def reset(self):
        '''Reset the plugin'''

    def getData(self):
        '''If implemented, it must return a dictionary of data.
        For example: {'trigger': 'play', 'action': callable}'''

    def setData(self, conf):
        '''The data returned with saveData() will be passed here when a program is loaded'''
